package com.imooc.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

/**
 * Created by ancy on 2017/7/5.
 */

@Controller
public class AppHelloController {

//    @RequestMapping(value = "/test/{id}",method = RequestMethod.GET)
    @GetMapping(value = "/test/{id}")
    @ResponseBody
    public String Test (@PathVariable( value = "id") Integer id) {
        System.out.println(id);
        return "测试";
    }

}
